
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*{
    margin: 0;
    padding: 0;
}
body {
    position: relative;
    height: 100%;
    overflow: hidden;
    background-color: var(--vscode-editor-background);
}
.empty{
    width: max-content;
    padding-left: 4px;
    font-family: Consolas, "Courier New", monospace;
    font-weight: normal;
    font-size: 14px;
    font-feature-settings: "liga" 0, "calt" 0;
    font-variation-settings: normal;
    line-height: 19px;
    letter-spacing: 0px;
    position: absolute;
    display: none;
    visibility: inherit;
    max-width: 564px;
    top: 0px;
    left: 0px;
    padding-left: 68px;
    color: var(--vscode-input-placeholderForeground);
}

.empty::before{
    content: "1";
    color: var(--vscode-editorLineNumber-activeForeground);
    line-height: 19px;
    display: block;
    width: 68px;
    text-align: center;
    position: absolute;
    left: 0;
    top: 0;
}
.empty a{
    .empty-editor-hint a {
        color: var(--vscode-textLink-foreground);
    }
}
.content {
    padding: 0 10px;
    height: 100%;
    width: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    background: transparent;
    /* white-space: pre-line; */
    word-break: break-all;
    word-wrap: break-word;
    line-height: 1.5;
    font-size: var(-vscode-editor-font-size);
    color: var(-vscode-editor-font-color);
}
.content div{
    text-indent: 2em;
    margin-bottom: 0.5em;
}
.content  .content-list{
    padding: 14px 0;
}

.chapter{
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    position: absolute;
    left: -100%;
    top: 0;
    bottom: 0;
    z-index: 100;
    padding:40px 10px 20px;
    background-color: var(--vscode-editorWidget-background);
    transition: left 0.3s;
    overflow: hidden;
}
.chapter-scroll{
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}
.chapter .list{
    
}
.chapter .item{
    line-height: 34px;
    border-bottom:1px solid #999999;
    cursor: pointer;
    opacity: 0.5;
    white-space: nowrap; /* 设置文本为不可换行模式 */
    text-overflow: ellipsis; /* 在文本溢出容器时显示省略号 */
    overflow: hidden; /* 隐藏多余的文本内容 */
    transition: opacity 0.3s;
}
.chapter .item.active{
    opacity: 1;
}
.chapter .item.active::before{
    content: "·";
    font-weight: 700;
    font-size: 30px;
    vertical-align: middle;
    margin-right: 5px;
}
.chapter .item:hover{
    opacity: 1;
}
.chapter .close {
    position: absolute;
    right: 20px;
    top: 10px;
    display: inline-block;
    cursor: pointer;
    width: 20px; /* 根据需要调整大小 */
    height: 20px; /* 根据需要调整大小 */
  }
  
  .chapter .close:before,
  .chapter .close:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center;
    width: 16px; /* 调整线条宽度 */
    height: 2px; /* 调整线条高度 */
    background-color: #fff; /* 设置线条颜色 */
    transition: all 0.3s ease; /* 可选：添加过渡动画 */
  }
  
  .chapter .close:before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  
  .chapter .close:after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

#contextmenu {
    display: none;
    z-index: 9999;
    position: fixed;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    padding: 0;
    /* transition: all .1s ease; */
    border: 1px solid #282c34;
    list-style: none;
    background: #fff;
}

#contextmenu li {
width: 100%;
}

#contextmenu li.divided {
height: 1px;
background-color: rgba(0, 0, 0, 0.1);
}

#contextmenu li a {
cursor: pointer;
display: block;
text-decoration: none;
color: #282c34;
width: 100%;
text-align: center;
padding: 10px;
box-sizing: border-box;
}

#contextmenu li:first-of-type {
border-radius: 5px 5px 0 0;
}

#contextmenu li a:hover,
#contextmenu li a:active {
background: #eee;
color: #0aaf88;
}